<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<br>
<div class="searchresult"><i>Advance Search Panel</i></div><br><br>
<s:form action="advancesearch">

<b>What do you want to search for? :</b><s:if test="%{#request.defaultselect=='product'}"><s:select list="#{'1':'Manufacturer','2':'Product'}"
			  				                                                                   name="searchtype"
			  				                                                                   value="2"/></s:if><s:else><s:select list="#{'1':'Manufacturer','2':'Product'}"
			  				                                                                                                       name="searchtype"
			  				                                                                                                       value="1"/></s:else>

<br><br>
<table class="manusearchform" >
	<tr height="30"><td>Manufacturer ID:</td> <td width="165"><s:select list="#{'1':'equal',
																	'2':'less than',
																	'3':'less than or equal',
																	'4':'greater than or equal',
																	'5':'greater than',
																	'6':'not equal',
																	'7':'between'}" name="manuidopp" cssClass="optionbox" value='eq'/></td> <td width="205"><s:textfield name="manuid" size="26" cssClass="inputtext"/></td><td class="extra">and:</td><td class="extra"><s:textfield name="manuidextra" size="23" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Name: </td><td colspan="4"><s:textfield name="name" size="50" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Address: </td><td colspan="4"><s:textfield name="addr" size="50" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Telephone: </td><td colspan="4"><s:textfield name="telephone" size="50" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Description:</td><td colspan="4"><s:textfield name="des" size="100" cssClass="inputtext"/></td></tr>
</table>
<table class="productsearchform">
	<tr></tr>
	<tr height="30"><td>Product ID:</td> <td width="165"><s:select list="#{'1':'equal',
																	'2':'less than',
																	'3':'less than or equal',
																	'4':'greater than or equal',
																	'5':'greater than',
																	'6':'not equal',
																	'7':'between'}" name="productidopp" cssClass="optionbox" value='eq'/></td> <td width="205"><s:textfield name="productid" size="26" cssClass="inputtext"/></td><td class="extra">and:</td><td class="extra"><s:textfield name="productidextra" size="23" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Name: </td><td colspan="4"><s:textfield name="prname" size="50" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Price: </td> <td width="165"><s:select list="#{'1':'equal',
																	'2':'less than',
																	'3':'less than or equal',
																	'4':'greater than or equal',
																	'5':'greater than',
																	'6':'not equal',
																	'7':'between'}" name="priceopp" cssClass="optionbox" value='eq'/></td> <td width="205"><s:textfield name="price" size="26" cssClass="inputtext"/></td><td class="extra">and:</td><td class="extra"><s:textfield name="priceextra" size="23" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Quantity: </td> <td width="165"><s:select list="#{'1':'equal',
																	'2':'less than',
																	'3':'less than or equal',
																	'4':'greater than or equal',
																	'5':'greater than',
																	'6':'not equal',
																	'7':'between'}" name="quantityopp" cssClass="optionbox" value='eq'/></td> <td width="205"><s:textfield name="quantity" size="26" cssClass="inputtext"/></td><td class="extra">and:</td><td class="extra"><s:textfield name="quantityextra" size="23" cssClass="inputtext"/></td></tr>
	<tr height="30"><td>Description:</td><td colspan="4"><s:textfield name="prdes" size="100" cssClass="inputtext"/></td></tr>
</table>
<div class="searchresult"><input type="submit" value="Search" /></div>	  
</s:form>